package chapter5.quarter2;

import java.util.Vector;

public class UpdateDel {
    public static void main(String[] args) {
        Vector<String> myVactor=new Vector<>(100);
        for (int i=0;i<10;i++){
            myVactor.addElement("welcome");
            myVactor.addElement("to");
            myVactor.addElement("beijing");
        }
        while (myVactor.removeElement("to"));
    }
}
